package com.sjd.mall.mapper;

import com.sjd.common.utils.sql.BaseMapper;
import com.sjd.mall.domain.SjdIntegralDetailDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.protal.account.mapper
 * @ClassName: AccountRechargeOrder
 * @Author: genglong
 * @Description: 积分明细
 * @Date: 2022/1/11 10:49
 * @Version: 1.0
 */
@Mapper
public interface SjdIntegralDetailMapper extends BaseMapper<SjdIntegralDetailDO> {

    /**
     * 根据账户id查询积分明细
     * @param accountId
     * @return
     */
    List<SjdIntegralDetailDO> queryIntegrlListByAccountId(@Param("accountId") Long accountId);

    /**
     * 查询用户的本周打卡次数
     * @param accountId
     * @return
     */
    int queryIntegrlClockNumByAccountId(@Param("accountId") Long accountId);

    /**
     * 查询用户当天打卡状态
     * @param accountId
     * @return
     */
    int queryClockStatus(@Param("accountId") Long accountId);
}
